package cn.lzt.test

class Task1  extends  Serializable {
  private  val data = List(1,3,5,7,9)
  val logic = (num:Int) =>{num + 2}
  val logic1:Int => Int = _ + 2
  def  com():List[Int]={
    data.map(logic1)
  }
}
